
/*
    跑步训练
 */
public class test2 {
    public static void main(String[] args) {
        int count = 0;
        int sum = 10000;
        int ans = 0;
        boolean i = true;
        while (true){
            if (sum < 600 && i) break;
            if (i){
                sum = sum - 600;
                i = false;
            } else {
                sum = sum + 300;
                i = true;
            }
            count++;
        }
        System.out.println(sum);
        ans = count * 60 + sum/10;
        System.out.println(ans);
    }
}
